Can't remember exactly, but it is in the manual. Obviously you only want to do it when it is next serviced.
IIRC on the A4, you press and hold one of the buttons - think it's the spanner one - while you switch the ignition on, then press the trip reset button. But I am sure it will be different on the A3.