How does UE4 calculate Roll Pitch and Yaw for a tracked device?

Good Evening everyone,

I am trying to do a simple application in VR where I get the orientation of a tracked object (which can be the HMD or a VIVE TRACKER) and I want to extrapolate its orientation and plotting it on the viewport.
I managed to do it using the tracking device ID however I can not understand how these values are obtained.
I suppose it is obtained by the variation of the local coordinate system of the tracked object in respect to the world reference (Which for Unreal Engine it is a Left-handed system). However, by looking at the developer guide of the VIVE TRACKER (2018) the coordinate system is right-handed and i can not understand the values that i obtained in game.
Does the Engine operate some kind of transformation in the local reference to calculate the orientation or does it use the developer defined coordinate system?