How to iterate through devices and os using C#

So Community I want to write a list that has IOS Devices and changes it every run. Is this being handled in someway? If I use a thirdparty that has the access what would that code look like?
This is what would change opt.AddAdditionalCapability(“device”, “iPhone XR”);
This is the list so far:
public void DeviceList()
List Device = new List();
Device.Add(“iPhone 8”);
Device.Add(“iPhone XR”);
Device.Add(“iPhone 11”);
foreach(string name in Device) { Console.WriteLine(Device); }

Any help is appreciated