Was looking for a way to do it.
Its about composing the whole transform chain from the target bone up to the root bone.
There is the manual way: Get Ref Pose Bone Position in Component Space in UE4 | Noah Zuo's Blog
Or Unreal provides a function:
FAnimationRuntime::GetComponentSpaceTransform