Although Mirren will not be seen on screen, the actress will provide the "inner voice" of a character on the series. The episode, directed by actor Eric Stoltz, will also feature "Real Housewives" star NeNe Leakes as swim coach Roz Washington.
Following the Jan. 17 episode, as previously reported, the series will pay tribute to Michael Jackson Jan. 24. The episode will feature 12 Jackson songs that span the artist's entire career.
Mirren was nominated for a Tony Award in 1995 for her performance in A Month in the Country and again in 2002 for her performance in Dance of Death. Mirren is also an Oscar winner for her performance in "The Queen" and is a four-time Emmy Award winner.
"Glee" airs Tuesday nights on Fox at 8 PM ET.