Configurable joint current torque doesn't reflect all constraints

It seems that ConfigurableJoint.currentTorque doesn’t include torque applied to solve for drive constraints aka target rotation. It only reports any values when joint is about to go out of rotation limits. Is there any info on how to calculate torque applied by drives manually?

Here, current torque is shown as Colored vectors when joint’s rotation constraints are set to locked. To counteract gravity and keep the body horizontal, the joint applies torque along X and Z axis.

Here, rotation constraints are set to free and target rotation is set to match the direction of the white line. The joint is kept mostly horizontal by drives but no torque is reported.
7143434--854603--upload_2021-5-15_16-25-40.png

To summarize, here is a view of the inspector.

Any info on how to calculate the actual drive torque would be appreciated.

Probably not.
I was fighting with ConfigurableJoint quite a lot also realized currentTorque is useless and generally how troublesome it is.
You could try calculate torque applied when you got two bodies connected and there are no influences from the world like collisions. This could be done by reading positions and orientations every fixed frame and calculating changes.