After his promotions across the trilogy, Kaiden technically outranks Shepard in 3. But it's Shepard's ship, and you're on a mission appointed directly from Admiral Anderson, and becoming a Specter first, so Shep's in command.
Alliance ranks don't quite match up to actual military ranks anyway...