Audiograbber claims to have support for both CDDB and FreedDB. But I don't know if that will help you.
[url]http://www.mpex.net/en/software/details/audiograbber.html[/url].

You could take a look at the pyhton-based set of utilities at [url]http://cddb-py.sourceforge.net/[/url].