You can find this 17-digit code on the driver-side door sill, the bottom corner of the windshield, or within the iDrive system under "Vehicle Information".