Hi,
you can simply write
$which vcs
synopsys/vcs/**2012.09**/bin/vcs
is your VCS version no.
Or you can use -v switch which prints VCS compile and run-time version numbers, and copyright information, at start of simulation which you can check in log file.