The short answer
Not in the sense of belonging to the dynasty. Queen Elizabeth II was a member of the House of Windsor. She was, however, a descendant of the Hanoverian kings, because Queen Victoria, the last Hanoverian monarch, was her great-great-grandmother.
What “Hanoverian” means
“Hanoverian” refers to the House of Hanover, which ruled Britain from 1714 to 1901: George I, George II, George III, George IV, William IV and Victoria. When people ask whether someone “was a Hanoverian,” they usually mean a monarch of that period. Elizabeth was born in 1926 and became queen in 1952, long after the dynasty ended.
Elizabeth’s line back to the Hanoverians
The link runs through Victoria. Victoria’s son Edward VII was Elizabeth’s great-grandfather. His son George V was her grandfather, and George V’s son George VI was her father. So in genealogical terms, Elizabeth descended from the Hanoverians, as many of the rest of her family does.
The dynasty name did not follow this chain. Through Victoria’s marriage to Prince Albert, the royal house became Saxe-Coburg and Gotha under Edward VII. If you want the history of that switch, see how Prince Albert of Saxe Coburg and Gotha was related to Queen Victoria. Whether the family today counts as hanoverian is covered by the question of whether the british royal family is hanoverian.
Elizabeth’s house: Windsor
In 1917, George V renamed the royal house Windsor. Elizabeth was born into that house. Her husband, Prince Philip, came from a different family, and the surname Mountbatten-Windsor was introduced for some of their descendants in 1960. The reason why Elizabeth was Queen but Philip not king is about royal titles, not houses.
Elizabeth’s other ancestry
Elizabeth was not only a Hanoverian descendant. Her mother, Elizabeth Bowes-Lyon, came from a Scottish aristocratic family, so there is a considerable British strand in her ancestry. Her family tree also includes branches from other German states and from other European royal houses. The broader picture is in the german ancestry of the british royal family.