If it is a facelift it will have the N52.
Facelifts have oblong front fog lights (that usually mist up), pre-facelifts have circular fog lights and the M54 engine.
Both engines are great but the N52 revs higher (7,000 rpm red-line) so there's another clue!