Look into something along the lines of a FitPC or fabricate something using a NanoITX board.
Performance will be lacking, however.
And you certainly won't be able to fit the PC AND the optical drive in a single-DIN enclusure. There is simply not enough space.
You do realize that most don't put the PC in the dash, but somewhere else, right?