Customer company is stored in KNB1 table.
I tried with BAPI_CUSTOMER_GETDETAIL2, seems it does not expose company code. Instead of it, company code is the bapi input.