Highly polarizable metastable He* ($mathrm{2^3S}$) and Ne* ($mathrm{2^3P}$) atoms have been diffracted from a 100 nm period silicon nitride transmission grating and the van der Waals coefficients $C_3$ for the interaction of the excited atoms with the silicon nitride surface have been determined from the diffraction intensities out to the 10th order. The results agree with calculations based on the non-retarded Lifshitz formula.