Honestly, both of those sentences sound strange. The first, "with sweat" makes it sound like sweat is an accessory or a partner. "In a sweat" is a more figurative expression that means "worried". To describe someone's state while running, it would be more natural to simply say, "She was sweating while running." although even that sounds a bit redundant (of course she's sweating).
"Worked up a sweat." is a good expression for this situation. "She worked up a sweat running."