I don't think there's a simple and fool proof solution. You could check the callstack to see in which module code the thread is running. But there's no guarantee that this will tell you the creator of the thread (although it's probably that you'd get the right module).