No capacitors in these headlight motors. Even if there were, with a 12 V charge on a capacitor, you would not feel anything. It is possible to get a small shock off the windings of the motor though.. When an inductor, in this case the winding(s) of the motor has voltage applied and them removed the instant the magnetic field collapses creates "back EMF " and you could get a slight shock from this, but not too bad.
After all, that's how your ignition coil works although the winding ratio is much greater in that case. When the ignition coils 12 VDC is disconnected via the distributors points opening up. Or, in the case of electronic ignition, switched off by the ignition control box transistor. The hi voltage sent to the spark plugs is created by a much greater winding ratio in the ignition coil, and thus a significantly greater back EMF, like thousands of volts !
By the way, we did the same with hi voltage charged capacitors back in my school days. Fun, but we threw them so someone would catch them...