I'll take a stab at it and guess its from a laptop dvd-rom drive, and not a dvd-rw? If it is from a dvd-burner (actually writes to dvd), then keep it and wait for a more experienced member to pipe in. If its from a read-only dvd drive...don't waste your time. I killed one and i could barely see it when it flashed before it died.
I also have a 10 pin diode in a 9mm can. I pulled it out of a DVD player. The IR CD diode is case negative, the positive pin being the one directly across from the case pin. I think the red diode in mine is dead because I can't find any others that work, but I presume the red diode pin is the one to the right of the IR pin.
They are very low-powered, and contain several laser diodes along with a photodiode array (plus some unused pins). They are useless from a hobbyist perspective due to their low power. Using a 9mm diode for ~5mW of output doesn't work well for pointers or other installations where size matters.