It seems that SteamVR and Oculus both expose the current IPD setting on the headset.
https://github.com/ValveSoftware/openvr/blob/5d0574bf6473130d25dd296ad30206ccd148590b/headers/openvr_api.cs#L3436
(Oculus OVRPlugin.ipd)
It could be a call on the SDK_Headset script.