It would be nice if there's a program that can read some code and tell you how good the code is...
By high quality I mean not buggy. I don't think there's any tool that can check for that.
For me, I have seen numerous BSODs by the audio driver, video card driver, and disk controller.
I agree drivers should be in userland as much as possible, but like you pointed out, that's not the case right now with any major OS. Though libusb and fuse are going in the direction to change that. They also have a worthy goal of allowing drivers to be cross-platform. Unfortunately they are both weakly supported on Windows. NDIS is also somewhat similar.