Yes rape can be convicted using modern forms of technology such as a DNA test. So even if there are no 4 witnesses, if it’s proven beyond doubt that the rapist is punished in Islamic Law. Any way that generates certainty to the Muslim judge. It can be through a recording, DNA, or any other method that gives certainty that she was raped.