Who pockets the €10,000 and what do they do with it?

The French government (of course).
Unlike in the UK, we’ve not had an annual road tax for some years now. The tax on vehicles with high emissions is all front loaded onto an emissions based tax on new vehicles at registration, and also on higher registration charges any time a more polluting vehicle is sold.