hierarchical instance static mesh + socket location issue

Does anyone know how to get the location of a socket on an instance created inside hierarchical instance static mesh? What makes it even more complicated is that the instances are rotated when I create them. I currently can get the location, but since the instance is rotated the socket is in the wrong position if I spawn anything there.