There is no such possibility in odeint. And I guess there are no algorithms which could do that. You must somehow encode the bound in your ODE.
If you only want to find a bound during the evolution of your system use a loop like
while( t < tmax )
{
stepper.do_step( ode , x , t , dt );
t += dt;
if( check_bound( x , t ) ) break;
}
Two side nodes, maybe this is the case for your problem:
There are special algorithms for ODEs with have conservation laws where the algorithm ensures that the conservation law holds, see the symplectic solvers for example.
If you bound is already encode in some way in your ODE and the bound is anyhow reached you must shorten the stepsize of the solver.