how to check oversampling

I am working on a DAC ‘driver’ in python that checks the Volumio status by calling the shell script (like it is done here:https://github.com/Vigo0101/Volumio-2-/blob/master/Audiophonics/ES9018K2M/ES9018K2M_serial_sync_volumio2.py)

From the info I set the hardware volume and the bit rate of the DAC. Problem is that the bit rate of course is wrong if oversampling is active. How can I check if it is active and at what bit rate it is set? I could read it from the config file but is that the best/only way?