I wrote this script to compare record counts between a live database and a restored copy to test backups, I thought people might find it useful.
What You need is to just copy the script and run it against your database.
Restoring Using DMO - Getting File List and No Recovery
Following up on a question posted in our discussion area, Andy demonstrates how to backup/restore a database using DMO, how to get the list of files to be restored, and how to do a restore with no recovery. Lots of sample code!