If you have a M&P 15-22 it would be clearly stamped "M&P15-22" on the left side of the lower receiver just in front of the safety lever. Just below that you would see the cartridge designation "22LR". The 15-22 is a dedicated 22LR built on the AR platform. It is in NO WAY capable of firing a .223 cartridge. If you look at your gun, and look at your mags it should be pretty easy to figure out what you have. ARs may not be stamped on the lower, because they are modular and you can put different uppers on the same lower. There are kits available that let you shoot 22LR out of your .223 / 5.56 AR but it doesn't sound like that's what you have. I would say why not just ask your friend what he gave you. I was reading your other post's as well, and I would strongly recommend that if you have any questions, or any uncertainties as to what kind of rifle you actually have, you should take it to a local gun store or shooting range and have someone with experience check things out and show you how to operate the weapon. The last thing you want, and the last thing we want, is for someone to get hurt. Either that, or you need to get a mess of pictures posted up here so members can see what it is that you have.