The code to query which Ubuntu version is used on Ubuntu servers via SSH;
lsb_release -a
The output looks like below.