Well the web interface of Kodi is activate via Settings → Services > Control
You then can control each individual OSMC install by opening the browser with the IP of the OSMC device.
Or use Apps like Yatse or Kodi Remote.
To program a python or php solution to manage multiple machines you can start reading these pages: