Ditto for England & Wales. Detectors are mandatory under the Building Regs. for new houses and for major renovations, and must be mains-powered.
I can't see how mandatory detectors for all existing houses could ever be enforced without Nazi-like legislation which would grant some local bureaucrat the legal power to enter your property to check. And I think you know how I feel about local council bureaucrats!