How can I tell whether my friend has been cheating?

There is no way your friend got those buffs legitimately. The max duration for the Ironskin buff is 5 minutes and Swiftness buff is 4 minutes.

Buffs also do not stack in effect or duration.

Your friend cheated those buffs.

Sources:

Terraria Wiki Buffs

Terraria Wiki Potions (Notes)