Your question is impossible to answer. "+P+" just means in excess of the highest recognized +P pressure. That's not enough information to provide an answer.
But here are some things you might find relevant. The 10mm, by virtue of its greater case volume, will be able to produce X velocity at a lower peak pressure than a .40. In addition, the 10mm has a slightly higher peak pressure SAAMI rating. Both are generally safe within their SAAMI rated range. You will be out of SAAMI rated range sooner (at lower velocity) with .40 than with 10mm. However, based on the claims of THR'er Clark (IIRC), there is some evidence that .40 brass, with its small primer pocket, may be stronger than 10mm. If that's correct (and I express no opinion on the matter), then the brass won't be the limiting factor in driving a .40 to 10mm speeds. However, that doesn't tell you anything about the ability of a gun to withstand pressure. A gun built to run SAAMI .40 rounds may have a hard time with 10mm-grade rounds. Disclaimer: Always stay within published limits and/or ammunition manufactured by a reputable ammo maker.
What are you trying to accomplish?