Probably the best you can do is download what are called chipdumps. If you go to
www.ocremix.org, I think you'll find quite a bit of game-based music; what you're probably looking for most of all is the chipdump from a particular game. It will be all the music tracks, sound effects, etc from that cartridge or CD. This is totally legal as the music is for "educational purposes".