i painted a CD-drive years ago to match my old case at the time and all i did was mask off the bits i didnt want paint on and then sprayed it with a few coats of silver car paint, worked fine and looked spot on.
Of coarse you could knock the paint off if you hit it with something sharp but its a optical drive on a pc, nothing is going to touch it.