Main identifying feature, there are more differences between the models then I listed
M16 = 20" barrel, full auto trigger group, sights that require a tool to adjust, no forward assist.
M16A1 = 20" barrel, full auto trigger group, sights that require a tool to adjust, forward assist.
M16A2 = 20" barrel that is heavy at the front, sights that you can adjust with your finger tips, stock 5/8" longer, 3 round burst trigger group, new flash hider that is closed at the bottom.
M16A3 = Identical to the M16A2 except has a full auto trigger group. Produced in limited quantity for the Navy.
M16A4 = basically an M16A2 with a flattop upper receiver and often found with the M5 RAS (rail adapter system)
M4 = 14.5" barrel, collapsible stock, 3 round burst trigger group. A very limited number were originally produced with a fixed carry handle upper but I doubt any are still in service. Flattop upper adopted before it was fielded in large numbers.
M4A1 = An M4 with a full auto trigger group.
You can't tell what model someone is using by the furniture and the round hand guards and longer buttstocks fit the M16 and M16A1 and the military stopped procuring the triangular hand guards and the shorter butt stocks when the M16A2 became standard.
There were still M16A1s in Guard and Reserve units when I retired in 2003. I wouldn't be surprised if there still weren't some out there.