depends largely on the formats it is in...
just have a look at the disc and see if you can find the music files. they are either in a streamed format, which you can probably play with vgmstream (
http://hcs64.com/vgmstream.html), or they are sequenced, which will be way harder to rip. There is a format for those rips called PSF2 if you want to look it up. Anything else is probably some weird stuff you cannot even rip, unless you record it from the audio output of your ps2 or come up with your own format (like, if the game uses some kind of internal softsynth), but you will very rarely see that.
thanks, i will look more info on that program and PSF2, thanks