This is how:

select * from sys.sysdatabases where dbid>4 and not like '$'

Archives