How to monitor output sound from terminal
You can get the volumes of the currently selected input, output and sound effects/alert device as a percentage value with an AppleScript one liner:

osascript -e "(get volume settings)"


which gives something similar to:

output volume:56, input volume:63, alert volume:28, output muted:false