Is there any application to keep an inventory of owned sets and pieces?
I know of no desktop applications that have functionality like Rebrickable, but an API has recently been released which would enable any applications to integrate with the site and display this kind of information. I know of one such application currently being developed but not ready for release yet.

disclaimer: I created Rebrickable.