Lock pistol open. Drop mag. Using a small flashlight, look down into mag well from ejection port. Find trigger bar(Upper part of the right side of the mag well). Find front forward corner of trigger bar and look for a small letter "H" stamped in the trigger bar. If you see the letter "H", that means the gun has the trigger and sear upgrades, and you are good to go. If you see nothing, or the trigger bar has an "S" instead(not common), it is an older gun w/o the trigger upgrades. Easy-cheesy check. Most Gun shops will not understand what you are looking for or at, and unless they ask, I just keep quite, as 9 times out of 10, they haven't a clue. Typical(Rolls eyes)!
Now, here is the kicker, so to speak. If the pistol you are looking at is used, and the price is right, don't discount that pistol as no good, because you can make an older M&P into a great pistol w/ some aftermarket parts improvements. The only real critical thing to worry about is the sear spring size, and S&W made sure that they changed that to the bigger sear spring early in M&P production. That can still be addressed w/ new parts or shipping the Pistol back to S&W for the newer sear spring/ sear spring housing. A person can call and if they get the right customer service person, a serial number check should reveal if you have a later, larger sear spring housing. So there you go. If you do buy an older 9mm and it won't hit the side of a Barn, due to accuracy issues, even after all your upgrades, then contact S&W for a return to have a barrel refit. They will, no problem.
Have fun, and be safe. Ofc.JL