$Version
$Version is a string that represents the version of Mathematica you are running.
See The Mathematica Book: Section 2.13.5. See also: $System.