Real Paley-Wiener theorems in spaces of ultradifferentiable functions