Get the size of a SharePoint 2010 database with the SQL command sp_spaceused:

sp_spaceused