On multi master i2c bus how to determine which device is the master of the bus?
I2C spec itself doesn't have provisions for "from" address, AFAIK.

You would have program the masters to transmit their IDs in the payload part of the I2C packet.