How? Based on issuer identification number?
As one example, Oracle Cloud's Free Tier sign-up prevents any type of virtual card.
I'm pretty sure it can be done via the IIN. Services like https://binlist.net/ provide a convenient solution to identify if it's a prepaid card.