An entity that is an element of a group has the group object as persistent
reactor. Therefore, you can read the list of reactors attached to that
entity (AcDbObject::reactors() function), and if it is a persistent reactor
of type AcDbGroup, then you have the group object and can obtain its name.
Cheers,
Stephen Preston
Developer Technical Services
Autodesk