Hi,
I hope there might be already some threads for this question in SCN.
Any how you can check in ET_Partners exporting table for partner id with based on sold to party partner function value.
You can find the partner function for the sold to party in your system using the below path
SPRO->Customer relationship Management->Basic Function->Partner Processing->Define Partner functions.
Best Regards,
Dharmakasi.