Try this:
select databasename from dbc.databases where dbkind = 'd' order by 1
Attachments
Library
Quick Reference
Archives
Sample Index
2011 Indexes