Answer
Yes, Wilhelm was directly related to the current British Queen Elizabeth II. Wilhelm and Elizabeth II were both great-grandchildren of Queen Victoria, who was the mother of Wilhelm's grandmother, Princess Victoria of Saxe-Coburg and Gotha, and the grandmother of Elizabeth II's great-grandmother, Princess Alice of Battenberg.