You can do this using the custom ActiveX component and som javascript on your web page.
Alternatively, you can use the Silverlight 4 application, which works in browser-free mode, but this is probably not what you want. SL4 can access the locally installed Com components that it runs in browser-free mode, so in this case it should be really easy to do.