If you look in sysaltfiles within the master database check the size * 8/1024 for the size in MB.
It certainly works for TEMPDB however, if your database was built without specifying a size then have a look at the MODEL database as your DB will have started out as an exact copy of that database.