The Grammy nominee will be featured in the Feb. 10 episode.
The performance came shortly after Twain played her headlining set earlier in the day on Saturday.
Musgraves' interaction with O'Rourke follows a string of stars who have been showing their support for the Texas gubernatorial candidate.