IMO it would show exceedingly bad judgment to ask someone how they voted in an interview. I wouldn’t categorically refuse to hire such a person, but it would be a strike against.
But you may find that many executives — including those who did not vote for Trump — are not interested in hiring people who believe they are entitled to know how their colleagues/bosses voted.