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:

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?