I'm not an expert on probability, but I think I can help explain this.
Take the case where you draw 20 socks. The probability of getting 10 pairs is 30C10 / 60C20. It's 30C10 because it's the number of combinations of 10 colors out of a possible 30 colors (you're assuming the case where you got 10 pairs, so there are 10 colors, and the ordering of left / right sock doesn't matter). The 60C20 is the number of possible combinations by drawing 20 socks out of 60 (which is why (2N)C(t) was used in the denominator in haruspex's formula).
Next is the case where you draw 21 socks, get exactly 10 pairs, so the 1 extra sock can be any of the remaining 40 socks. In this case, you can think of this as left and right socks being unique when there's a sock being drawn that doesn't match any of the other colors in a set of t socks, since there are 2 of each sock of the same color and you could draw either one.
Next is the case where you draw 22 socks, get exactly 10 pairs, and the 2 extra socks have to be a different color than the 10 pair, and different from each other.
The 2^(...) component in haruspex's formula is due to the fact that there are two socks of each color.
If you follow this logic and compare the results with haruspex's formula it should work out. You may want to consider a smaller case, like getting exactly 2 pairs from 10 socks of 5 colors which is small enough that you could use a program to create a list of all the possible outcomes (252 max number of combinations with 10 socks).
You can use haruspex's formula in a program for 20 <= t <= 60, and find the t with the highest probability of getting exactly 10 pairs. If the relationship between t and probabilty is quadractic as mentioned by haruspex, you could use a quadratic least squares fit on t versus probablity to find t to a number of decimal places.
I have a documument with example code for doing polynomial least squre fit that doesn't involve inverting a matrix, which can be an isssue for higher degree polynomials. Link to that document (rtf fiile):
http://rcgldr.net/misc/opls.rtf