Welcome to FT!
You can walk from T4-- there's a sidewalk outside that runs to the lower level of T5. You can also take the Airtrain rail system. You might be able to check it at the baggage recheck area at international arrivals at T4. Check when you arrive, but you'll probably need to carry it with you to T4.