We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
The mc.vrayGetVRayRoot() command returns the path to the V-ray installation for the current version of Maya being used.
mc.vrayGetVRayRoot()
import maya.cmds as mc print mc.vrayGetVRayRoot()
Results in (on a default installation of Maya 2014 on Windows):
C:/Program Files/Autodesk/Maya2014/vray