The Sensitivity of Dielectric Haloscopes to Dark Matter Axions and Dark Photons