An electrical probe of the phonon mean-free path spectrum