Viscosity measurement of an enclosed liquid using ultrasound