This would be - in effect, even if not in intent - spyware. As far as I know you can't do this in Java.