Using the Property Broker service you can retrieve the list of properties for a component. Components identifier are usually the full view Id of an Eclipse view (there are some exceptions but for the most part you can assume this). You can use the SWTHelper.getFullViewID() method to get the id for an eclipse view part. If the array has properties returned you know this is a composite application component.
PropertyBroker broker = PropertyBrokerFactory.getBroker();
Property properties = broker.getProperties( SWTHelper.getFullViewID( view) );