I would think one of dynamic DNS client utilities might do this... Check through the list here and see if any allow running an external command on detection ...
It is sometimes useful to know the network commands to analyze or configure your TCP/IP networks. Here is the list of commands that can be used in the command prompt. This command is also useful to ...