To get the config names for a component:
1. Get the IComponent2 pointer
2. Getting the underlying IModelDoc2 pointer using IComponent2::GetModelDoc2
3. Get the names of the configurations using IModelDoc2::GetConfigurationNames
To get the config names for an assembly, just use IModelDoc2::GetConfigurationNames for the active assembly document, which you probably obtained through ISldWorks::ActiveDoc.
thanks for your help