Late stages of stellar evolution with Planck: a feasibility study