Often implies displeasure or punishment from the speaker towards someone else. After messing up the report, he's going to sock it to her.
Pro Tip 2/3
Aggressive Tone
It can sound combative or confrontational, suggesting a verbal or figurative attack. The critic really socked it to the director for that disastrous movie.
Pro Tip 3/3
Idiomatic Usage
It's a colloquial phrase, likely to be used in casual or informal settings. He's playing dirty in the game, and they're going to sock it to him after.