Hi Joseph,
one quick possibility is to query the standard table MARC, field STDPD (Configurable material).
The field MATNR contains the existing material variants for that configurable material.
Hope this could be of any help.
Thank you and bye,
Flavio