You can easily get the IMEI by looking at the SIM card placement slot:
It should be there for the following devices:
- iPhone 7
- iPhone 7 Plus
- iPhone 6s
- iPhone 6s Plus
- iPhone 3G
- iPhone 3GS
- iPhone 4 (modello GSM)
- iPhone 4s
Source: Apple Official Documentation.