@msgavali111 Using Querybuilder with the component's sling:resourceType you are looking for under rootpage, you will get the list of resources with which you can get hold of properties that you want.
path=rootPage
property=sling:resourceType
property.value=<component's resourceType that you are ...