Only recent generation AirPods have an AirTag embedded in the case. Older models were limited to trying to play a loud sound from the bud if they were out of the case, and IIRC nothing useful for the case itself.
It’s better with the newer AirPod models. The older ones are bad enough that I have an AirTag attached to my AirPods case.