As per your comments the lack of equipment never stopped you from working from home before, quite the opposite, this is something you repeatedly wanted. And now that company mandates you to WFH (and for good reasons), you want to out of spite refuse to do it. You can call it "principle" or whatever, but whatever issues you have with the workplace, there are better ways to solve them than throwing a tantrum. For example asking a question here, describing the problems and see how people can help.
But I digress, so to the question:
Can I refuse to work from home, and still get paid for the time the
office is closed?
That depends. If you are going to outright refuse to WFH, and won't comply with any suggestions - like that you can come to the office and pick up your work equipment, or work from an alternate location, then yes, they could deduct your pay, although they will likely burn your holiday time instead. On the other hand if you follow their instructions and communicate any issues then they would struggle to deduct pay in a way that's not violating a law or two.
Though you should also keep in mind that the employer almost always has the right to put you to different types of work (within reason) if doing your primary responsibilities is not possible. I am sure there are some mind-numbing jobs that need to be done, and can also be done from home.
But honestly, that would be least of my worries, and the following disciplinary action is something I would focus my energy on instead, as they gave you what you wanted, and in this vulnerable time instead of being happy about it, you decided to kick up a fuss about it. That's something which will need some explaining.