Code to access if sound is muted

On touch you can set volume to muted, which is different from mi (vol)=0. I can't find any code that makes it possible to react to the mute state. For example to change a colour when the sound is muted.

Is it possible to add such a code to the Kustom apps?