Just open the hood and investigate. You will see the grey plastic parts that clip over the male pieces on the headlight body. It can be done with the headlight in place, but if it's your first time it's safer to remove the assembly.
Take a look at
http://www.v12uberalles.com/headlamp_lense_cleaning.htm
This is for the S Class but 124 is almost the same.
Steve