Query iPhone information (battery cycle, health, storage capacity, IMEI ect.)
There is an app that basically does what you want. It is called coconut battery.
You can conveniently track multiple devices battery health, their device name, model and more. Just click on history → open history viewer.
All you have to do is to connect the device, trust it once and then anytime you reconnect it should save the info (if the app is running).
I only have the free version, but if I remember correctly, there are some features that require a purchase. Personally I have never needed these though.