$vol
From Scriptwiki
Returns the current volume for the specified sound setting.
$vol(wave|midi|song|master)[.mute]
The mute property returns the relative mute setting.
Example
$vol(wave)
Returns the wave volume.
$vol(master).mute
Returns $true if the master volume is muted, $false if otherwise.