Getting hand joints data

You can access the hand joint information directly via the XR Hands package.
https://docs.unity3d.com/Packages/com.unity.xr.hands@1.5/manual/hand-data/xr-hand-access-data.html

For the Head, you can use the Main Camera or OpenXRHmd input bindings: