Thermodynamically Consistent Latent Dynamics Identification for Parametric Systems