any car you buy you can call a BMW dealer and give them the vin and they will tell you if the car has a good "factory" maintenance history.
FYI my old jet black 2008 e90 m3 is for sale at a used car lot for 35k. Car has 47k miles. Really good deal IMO. And the car is very well maintained. (this is in Florida)