I believe your engine is an N52 from the pic. It is the same as mine except, my rocker cover is silver. The rocker cover for an M54 is different in design.
From 2006-2008, BMW E85 were delivered with the N52B25 2.5lit engines in two states of tune:
2.5i : Power 175bhp, Torque 218N.m, 0-60 7.0 secs
2.5si: Power 215bhp, Torque 230N.m, 0-60 6.5 secs
The N52 engine replaced the M54 to improve handling with a lighter engine upfront.
Externally the both the N52B25 engines are identical. The only way you can tell for sure is to use the VIN and check the engine at the point of delivery.