What You Need to Know About Using AirPods for Hearing Protection
Head to Settings > Sound & Haptics > Headphone Safety and enable Headphone Notifications to receive an alert if you exceed the safe audio levels. This works with all headphones, not just AirPods, but it doesnt take into account other loud noises such as any time you spend at a building site or concert.