SPWeb.UIVersion property
SharePoint 2013
Gets or sets the current version number of the user interface.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Gets or sets the current version number of the user interface.