The spies in the box and the level of racial espionage (Low, Medium, High, Advanced) do not affect tech stealing. Only having at least one spy on at least one planet generates the chance of stealing a tech.
Additionally, having more than one "deployed" spy does not increase that probability.