Hard to say if that is from a P-38 (or the applicable Allisons that powered the aircraft, but based on what I see, I doubt it. The Allison engine had a six stud mounting flange for the generator. I've attached some photos. Maybe someone else on here has more information.