Go to "Settings -> General -> About." If you see "No SIM restrictions" next to "Carrier Lock," your iPhone is unlocked, and you're free to use any mobile network's SIM card or eSIM (if your iPhone supports this feature).