would you more likely help free the prisoner if it was the same race as you.
Welcome to the forums!
To answer your question, that wouldn't affect my decision to help the prisoners or not. I don't let the Stormcloak POWs (those being escorted by Imperial soldiers) go because I'm a member of the Imperial Legion.
That being said, I have no qualms about cutting down the Thalmor to release a Talos worshiper, even if he's going to join the Stormcloaks and become my enemy.
Overall, I think it makes sense that the prisoners we see are Nords. The Thalmor are only looking for Talos worshippers, and I don't know if the Talos cult extends to Mer and Beast races by a significant margin. Maybe they could also have Redguards, Bretons, and Imperials, but it just being Nords doesn't bother me.
Same with the Stormcloak POWs. I occasionally come across Dunmer saying they're going to go join the Stormcloaks, but I'm pretty sure every Stormcloak I've met in battle was a Nord, so it makes sense that they're the only one's I find being taken prisoner. Aside from player characters, I don't actually recall seeing non-Nords in Stormcloak garb and defending their holdings.