The information for doing this can be found in the open source code to Emptool (available from the main www.empeg.com web site) and the open source code to Jemplode (available from the link at the top of this page).

We would all be very anxious to see what you come up with in this vein, as the problem of tagging and organizing one's music collection hasn't yet been solved to everyone's satisfaction yet. There are a lot of great tools available that we've seen, but no "silver bullet" cure-all yet.
_________________________
Tony Fabris