Thanks for reaching out to the Apple Support Communities! That is a great question you have about the Apple EarPods and using them on devices other than the iPhone 7. Check out this article here about how to Use Apple headphones with your iPhone, iPad, and iPod . Specifically:
Apple EarPods with Lightning Connector
To use Apple EarPods with Lightning Connector, you need an iPhone, iPad, or iPod touch that has a Lightning connector and iOS 10 or later.
Apple EarPods with Lightning Connector don't work with iPod nano or any device that has iOS 9 or earlier.
Have a great day!