One of the accused - Tareef - is an employee at a factory run by the boy's father, while the other accused - Danish - used to work there, a senior police officer said.
The boy and his sister were on their way back home in Kardampuri from school when he was kidnapped on Monday.
The accused asked the boy about his uncle's address and then took him away, the police officer said.
The two accused have revealed that Mohsin, the boy's cousin, was the alleged mastermind behind the kidnapping, the officer added.
More details are awaited.
Get Breaking news, live coverage, and Latest News from India and around the world on NDTV.com. Catch all the Live TV action on NDTV 24x7 and NDTV India. Like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.