Here’s how to access information about whether an iPhone is locked to a Network Provider. (This information has been available in iOS since iOS 14 arrived in 2020). To access it open Settings.