Groups are stored in the ACAD_GROUP Dictionary within the Named Object Dictionary, and may be accessed using the following:
(dictsearch (namedobjdict) "ACAD_GROUP")
Or, through Visual LISP using the Groups property of the Document object:
(vla-get-Groups <Document Object>)