Drinfeld discriminant function and Fourier expansion of harmonic cochains