Using the system table VERSIONS, you can determine the following database information, among other things:
Version of the software with which the current
database instance is running, and the operating system that the instance is
running on
SELECT *
FROM DOMAIN.VERSIONS