I suspect you travel on CX all the way...
Your baggage can be checked all the way to JFK, and boarding pass issued on both segments. You can leave airside to landside without any problem as long as you fulfill the visa requirement as christep said.
Welcome to Flyertalk and HK forum!