It should be possible to write a mobile app that handles SMS and can also communicate via USB, but I doubt that this functionality exists built in. I have no knowledge of Windows Phone to know for sure, though. On Android something like this could probably be facilitated via the
ADB debug tool (or at the least that could handle the USB communication part); maybe something similar exists on Windows Phone.