$ hadoop version
Hadoop 0.20.2-cdh3u4
I am not sure that you can get the Hive version from the command line, though. Possibly you could use something like the hive.hwi.war.file property or pull it out of the classpath.
You can check out this video if you want to learn from scratch: