You can extract the information from the header file. It will require you to open the database file 'by hand' but I don't know if there is an API function to get this information.
If you have a data connection to it in Visual Studio, you can right click on the data base in Server Explorer, select properties, and the version will be shown in the properties window, (under Version, surprisingly). You might need to left click the database first to open it.