How to check the version of Ubuntu you are running from the command prompt / terminal (remotely using something like PuTTY or locally…).
Simply run the command: lsb_release -a
This will display the description, release and Ubuntu codename, which you can cross reference at Ubuntu Release Versions.