Thermostatic properties of finite and infinite nuclear systems