Not for different rooms, but different appointment lengths can be controlled by “Appointment Types”.
If you setup default appointment lengths (Tools | Types & Categories) then ClinicOffice will prompt you if you create an appointment of a certain type for a non-standard duration.