In England, landlords must equip a smoke alarm on every storey with living space, and a carbon monoxide alarm in every room used as living accommodation that contains a fixed combustion appliance (not gas cookers). That is the Smoke and Carbon Monoxide Alarm (England) Regulations 2015, as amended in 2022. A licensed HMO is outside those Regulations, but the same alarm duties are mandatory conditions of its licence (Housing Act 2004, Schedule 4 paragraph 1), and the council can add more.
GOV.UK's landlord booklet also says alarms should be checked so they are in proper working order at the start of a new tenancy, and repaired or replaced as soon as reasonably practicable if a tenant reports a fault. Local authorities can enforce the regulations and can impose a fine of up to £5,000 where a landlord fails to comply with a remedial notice.
Useful links
Guidance only, not legal advice. Only the council can decide whether a property needs a licence, and the law can change. Check the linked GOV.UK pages and your council.