Yeah, actually screw most of the first paragraph.
Really, just don't ask straight up ask "Are you gay?" as this will completely wreck any chances of him not making a huge thing of it if he says no. Just approach it lightly, and be prepared for the answer.
Really though, you ARE best friends, you SHOULD have some idea.