To find the version of Ubuntu installed

$ cat /etc/lsb-release
OR
$ cat /etc/issue

To get the version of kernel and other information do,
$ uname -a

Update:

Just use

$ lsb_release -a