Sometimes you can use websites like
www.dnsstuff.com to determine the root source of the service provided. But, these days with anonymous nameservers/private nameservers it can be very hard, if not impossible to tell if company b is a reseller or a server owner.