That's a no brainer, it has to be the 24-70mm, you can zoom with your feet but there's nowt you can do to change an f4 to a f2.8!
If it's for a home studio then the 17-55mm 2.8
You'll get an effective 27-88mm due to the crop of the 40D
That range is more useful, you have the benefit of the 24-70 (the F/2.8) and the benefit of the 24-105 (the IS)
Plus it'll be sharper than the 24-70 is wide open, and almost half the price leaving you with £400 spare to buy a 50 1.4 and a used 580EX
There are few non L lenses as good as an L lens. The 17-55 and 50 1.4 are the only two I can think of.
You don't need 2.8 in a studio, but it's a handy thing to have anyway.
This is only good advice if he never aims to go full frame. Otherwise he'll have to sell this lens and buy either one anyway so if you have aspirations to go full frame then go for the L lenses.
Sure you can sell the 17-55 and you won't lose too much but it's still a pain to have to do so, depending on when you might go full frame
It's a pain to sell a 35mm 2.0 but one of the most popular EF-S lenses would sell like a hot cake.
I bought my used one for £550 and when I went full frame it was posted out my door in under 3 days for a £25 mark up.
Just because it's a studio with no low-light problems doesn't mean you don't need a fast lens otherwise why do people use f1.2 etc? Depth of Field for creative purposes etc is important also.