Well, it looks like MAME has a pretty robust way to get run-time data to pass to other applications which would answer part of my problem. I'd really like to be able to get data from Attract-mode, so I don't have to start from scratch with each emulator.
Is anyone out there capturing run-time data from Attract-mode for any reason?
EDIT:
Well, I just discovered fe.plugin_command which looks like exactly what I needed, just took me a while to discover it.
Looks like I can use fe.plugin_command to pass off the romname.