As of MiKTeX 2.6 there are a few COM objects which make it possible to automate MiKTeX-specific tasks and to retrieve information about the MiKTeX installation:
Interested users and developers are welcome to make suggestions.
Samples, documentation and header files are bundled into the MiKTeX SDK.
The documentation can be read online.