Internal components work because they are added at the same time the software has been loaded on the phone. Airpods are added after the fact and can change later. This means scam products can just bit for bit copy the signature and serial number from genuine airpods.
The only detection method then would be Apple noticing multiple products have the same S/N which I guess is how they warn users of fake products these days.