15" MacBook Pro to 27" iMac monitor
According to Target Display Mode: Frequently Asked Questions (FAQ), you can't do it.

8. Can I use TDM in Boot Camp?
Target Display Mode is not supported under Boot Camp.