Winamp has an input plugin, not sure how you could get it to select the optical input, but once you do that you just need to play the MD player and record in Winamp, you get a nice .wav file out of it ...
I've got some friends who are into recording live shows and do so with minidisc recorders (on a side note, this is done with permission of the bands they are recording, sometimes they get soundboard ...