What is the right way to get a skeletal mesh component's location?

I know this is ancient but I just had the same issue and I hate finding threads like this with my problem but no solution.

For this, my solution was to just create a socket and use component->GetSocketLocation(), and this gave me accurate location data that accounted for the socket’s movement from animations.