At first, they were comparable in military technology, but by 1850's the Indians were falling behind. In general, Indians could obtain the latest military technology, either from the Ottomans, or buy it from the Europeans, and then copying it.
The Mughals were slow to adopt flintlocks, but continued to use matchlocks even after the more advanced flintlocks were available, but I believe that only applied to the Mughals, and Tipu Sultan and other Indians were using flintlocks. However, by the 1850's, the British had revolvers, and the British percussion cap, Minie ball P53 rifles were superior to the arms of the Indians.
In the 18th century, in certain not specifically military technologies, the British were more advanced, which might have contributed t a slight military edge. British navigation was more advanced, having 2 different methods of calculation longitude, and aids like sextants. Improved navigation could lead to better transportation. Better map making technology might also have been a slight military advantage,
But as the 19th century progressed, with the steamboats, and railroads that gave the British an edge in transportation and military logistics. Advances in food storage, in bottling and canning, also would give the British in military logistics. Things like telegraphs would have given the British better communications.