Go to Start > Programs > Windows Updates

Click "Review your revision history."

Click the failure icon under the Status column for the failed update in question.

A pop up window will appear. There you will find the Installation Failure Error Code.