In regards to the two soldiers, Israel has captured at least 15 Hizballah fighters including some High Assets people as Israel Foreign minister mentioned two days ago. So Israel will have the upper hand when negotiating on getting the prisoners.
Actually, Israel did go in with one stated war aim being the disarmament of Hezbollah in accordance with the prior U.N. resolution.
As for the release of the soldiers, the original aim was for their release without condition, meaning no prisoner swap or negotiations as had been done in the past.
Perhaps neither Israel nor Hezbollah won, but it is my opinion that Iran is a big loser.
Hizbollah was being counted upon by Iran to be in position to destroy Israel if Iran were attacked. Because of their lack of precision, Hizbollah's rockets proved to be completely inept, few Israelis were killed, and Israel can be less fearful of Hizbollah now that they have been dispersed. Iran thereby loses a huge bargaining chip moving forward in the matter of their nuke program.
Secondly, the Arab world loses vis-a-vis Israel because not only did everyone sit back and let Israel pummel Hizbollah, most Arab countries publicly denounced Hizbollah's initiation of the war. The "enemy of my enemy is my friend" simply was not operative here, and Iran is clearly on their own now.