VERSIONS 

Using the system table VERSIONS, you can determine the following database information:

Version of the software running on the current database system and the operating system that the instance is running on
SELECT *
  FROM DOMAIN.VERSIONS