Hi,
I googled a bit today to find libraries which can do metadata extraction.
The first target was id3 for mp3s, and I found one link I think most interesting, because it describes different possible libraries:
Public Object: Java ID3 MP3? Good luck!
Also the ffident lib might be useful for later:
ffident — Java metadata extraction / file format identification library
For ogg vorbis audio, the vorbis-spi might be interesting:
Ogg Vorbis SPI - links and documentation
as well as JOgg:
J-Ogg overview
I hope I was able to help a bit.