Try
SELECT @@VERSION
or for SQL Server 2000 and above the following is easier to parse 🙂
SELECT SERVERPROPERTY('productversion')
, SERVERPROPERTY('productlevel')
, SERVERPROPERTY('edition')
From: http://support.microsoft.com/kb/321185