Yes, you can ask political views in an interview. After Trump was elected, we found this out because liberals fired Trump supporters and refused to hire Trump supporters. I now refuse to hire democrats.
You need to check EEOC and Federal Regulations for interviews.
You can ask the questions but you are setting yourself up for a lawsuit.