You're talking about... literally hundreds of books. The best books on guns are the books that specialize in a specific model or brand. The more generic, the less specific information on any given gun.
I'd consider what guns you have the greatest interest in, and use that in your general search.
Ammunition... that can be covered a bit better in a generic book, but again... specifics are better. At least try to separate by rifle, handgun and shotgun.
There is so much information on the interwebnet that if you have a bit of patience, and can tell the difference between pig poop and pearls of wisdom... you can compile your own data as you choose.
Shoulder Drive Nicholson Club