how to know the shell version in ubuntu

C++
gnome-shell --version

Source

Also in C++: