Can Fe(CO)5 adopt both square pyramidal and trigonal bipyramidal geometries?
Your book was correct that a five coordinate metal complex is able to adopt both square pyramidal and trigonal bipyramidal geometries, and in both cases the sp3d hybridisation scheme applies (if you believe in hybridisation...). 

Which geometry is adopted depends upon a combination of steric and electronic factors, and isn't necessarily trivial to predict, though MO theory and crystal field theory can help understand which might be more favourable. 


  


The structure of iron pentacarbonyl is widely agreed to be trigonal bipyramidal, with three CO ligands occupying equatorial positions, and two CO ligands occupying axial positions. 


  
  
  Trigonal bipyramidal structure of iron pentacarbonyl


Whilst both geometries are possible (and indeed observed, IF5 is square pyramidal), I suspect that your confusion arises from the fact that iron pentacarbonyl is able to undergo a phenomenon known as Berry psuedorotation. 


  
  
  Mechanism of Berry psuedorotation 


Berry psuedoroation is the process in which two of the equatorial ligands are switched out for the two axial ligands via a square planar intermediate. This process is sufficiently rapid that if observed by NMR, only one environment for the carbon of the CO ligand is observed (i.e. the psuedorotation is faster than the NMR timescale).