CBS brought back The Carol Burnett Show for another run in the fall of 1991; new regulars included Meagen Fay and Richard Kind (brought over from the NBC show), and Chris Barnes, Roger Kabler and Jessica Lundy. Only nine episodes of this revival were aired.
It's from this series. That's Andrea Martin
from SCTV playing Spock.
In one episode skit, the Enterprise passes through the Estrogena Nebula and all the crew have their genders reversed. Kirk is played by Burnett, Spock by Andrea Martin.