Query the instObjGroups index of the shape for specific transform node

hi ,everyone .
 i have  two instanced mesh nodes.when i select a transform node, how to query the specific instObjGroups attribute index for the shape under the selected transform?