Luminous Flux is the measurement you're looking for, and is measured in lumens. Looking at the pages you've linked:
The XP-E shows a luminous flux of only 425, while the XT-E has a luminous flux of 550. Luminous Flux is measured using an integrating sphere, so it is the actual total light output of the device under test. A given light, of course, may appear brighter than another with higher flux depending on optics and observer location, but as far as measuring the total light output, luminous flux is the measurement to use.
So to answer your question specifically, the XT-E is capable of more light output than the XP-E. This also matches well with current consumption, where the XT-E consumes 1.5A at its rated output, while the XP-E consumes 1A at its rated output.
I expect that both would have similar brightness at the same current, so if you were to feed them 350mA(ie, about 116mA per discrete LED in the module) then you can probably expect to see very similar light output between the two modules. If you're going to run them under current though, I'd suggest simply buying lower light output LEDs - they'll be much less expensive.
If you can explain what you're trying to optimize - be it brightness, efficiency, cost, etc then we might be able to provide better guidance.
You could build a mechanical shutter operated by a servo motor and controlled by a microcontroller easily enough, but there is another issue.
Your 400W of input power is being turned into light and heat. I don't know what the efficiency of your proposed bulb is, but even if it was as high as 25% (dubious) you'd still need to dispose safely of 300W of heat continuously. When the shutter obstructs the light the waste heat will probably ramp up to almost the full 400W because most of the 40k lumens are going to be converted back into heat.
Have you looked for high power LED's (or LED arrays) that can generate the kind of light intensity you need? LED's can usually be switched on and off pretty much as required, and they're also generally more efficient than other light sources.
Best Answer
Yes, comparing lumens of the two light sources is the right way to compare their perceived brightness. To get an LED that looks about as bright as a 32 watt CFL, find how many lumens are radiated by that CFL, and look for an LED with a similar number.
There is also a quick rule of thumb. LEDs and CFLs are approximately equal in efficiency (the most efficient LEDs or CFLs achieve around 100 lumens per watt), so a 32 watt CFL will require approximately a 32 watt LED to have equal brightness. Of course this is just an approximation, and there's wide variance in the efficiencies of individual CFLs or LEDs, but this will get you in the right ballpark.