Added in 1.8.10

$osname

Returns the name of the windows version. (Windows 7, Windows 8 etc)