The problem is that such vaccine wouldn't only work when you are in a vehicle or prevent you from making other stupid decisions. This really wouldn't address the root cause and would be a pretty egregious violation of an individual's freedom of thought.
The idea of the state having authority to permanately biologically alter an individual to control his or her behavior is a throwback to the time of lobotomies, which even the Soviet Union banned in the 1950s.
I just say this because it's easy to get into the rut where anything the Soviet Union did was bad and everything the USA did was good. There's no reason per se to expect Soviet doctors to be particularly evil compared to American ones. Which isn't to justify the many many evil things the Soviet state did perpetrate.
Notice by its lack of blockbuster-ness and the fact that the market for alcohol is 1000x the market for cocaine, that this "cocaine vaccine" isn't good economics.
I then would like to see a law mandating its use for all people who who have a DUI.
Unfortunately the quantities of the active drug in your system when you abuse alcohol is orders of magnitude higher than for nicotine or cocaine. So it could well be that your body's immune system simply gets overwhelmed. (That or there could be real health consequences from the immune reaction.)
But it would be nice if it existed.