The transmission code is on the label on the underside of the front trunk (next to the engine code):
Transmission decoder:
G8600-00x = 5 speed gearbox for 1997 -1999
G8601-00x = 5 speed gearbox for 2000 - 2004
G8620-00x = 6-speed gearbox S-Models 2000-2004
x is either 1 or 2:
-001 is non-limited slip differential (LSD)
-002 is for the LSD
Tiptronic is A8600 or A86XX