The database name is “BFEnterprise” and it lives on the BES Server (unless you used a different database server, which is not common). You can find more information about querying the database from: http://support.bigfix.com/cgi-bin/kbdirect.pl?id=161
You can see from the schema document that the BES_COLUMN_HEADINGS view is the easiest way to query the properties of computers. For instance, to see a list of all the OSes, use:
select Value from BES_COLUMN_HEADINGS where Name = ‘OS’
For RAM, try:
select Value from BES_COLUMN_HEADINGS where Name = ‘RAM’
To retrieve multiple properties in one query, you will need to join the BES_COLUMN_HEADINGS view against itself.
If you are looking to develop reports based on these properties, consider using custom web reports because it tends to be easier and puts less load on the database.