Single- and two-particle energy gaps across the disorder-driven superconductor-insulator transition