This isn't a method, but an outline of a process...
You have a component-instance.
From that instance you can get the component-definition.
You can then add a new instance of that into the same entities-context as the original instance, using a copy of the original's transformation.
Now you can process that new instance.
For example, you can explode it get a reference to everything, then erase everything that's not an edge - e.g. faces, text, dims, and nested groups and instances.
Now you have the edges.
If you'd like a group containing just those edges...
Once you have the component-definition, you first add a new empty group into the same entities-context.
You can now make a reference to the group.entities context and then add the new instance into that new context, explode and trim the array of entities, to finally leave only the desired edges inside the group.
Now you have the required edges inside your group.
[Remember that you can rename that container group etc as desired]