Did you get herpes, actually, or is this a what if scenario?
No, you don't get HIV from sores on your scrotum unless a significant amount of her blood or vaginal secretions get into those sores, and you have to have open sores at the time of the sex. If you got herpes from her the same time you might have gotten HIV, you wouldn't have sores yet.
If you used a condom, then you had no risk for HIV.
The skin on the scrotum is normally too thick for the herpes virus to penetrate. It's not a typical place to get it.