You could use

sp_helpdb [ [ @dbname= ] 'name' ]