I did a Google search on this last night, and I found several different recommendations from veterinarians. One said that the queen should be dewormed during the first two weeks of pregnancy, but not later than that. Several others said to wait until after the queen has had the kits to deworm her. So, I recommend you wait until after she has the kits ... unless your own vet recommends deworming her sooner than that.
Laurie