DATABASEPROPERTYEX(dtabase,property)
It will return the specified property of the specified database.
To know your database version use Version as the property.
SELECT DATABASEPROPERTYEX(Student,Version)
-->365
You can use this function to know other properties of your database.