The flagship BBC show will mark its 30th anniversary with a series of special episodes filmed at Windsor Castle, Sandringham House and Balmoral Castle, it has been announced.