The fields of optomechanics and electromechanics have facilitated numerous advances in the areas of precision measurement and sensing, ultimately driving the studies of mechanical systems into the quantum regime. To date, however, the quantization of the mechanical motion and the associated quantum jumps between phonon states remains elusive. For optomechanical systems, the coupling to the environment was shown to make the detection of the mechanical mode occupation difficult, typically requiring the single-photon strong-coupling regime. Here, we propose and analyse an electromechanical setup, which allows us to overcome this limitation and resolve the energy levels of a mechanical oscillator. We found that the heating of the membrane, caus...