Could be crosswind, see above for indicator in the G1000, but I’ve found it not being reliable if your not moving fast.
or the classic windsock, the orange tube thing near the runway indicating where the wind is coming from.
or checking the weather reports at your takeoff runway via ATAIS, or the EFB tablet.
I haven’t had/seen enough crosswind in career to mess-up a takeoff, I’ve seen some insane crosswinds on landing tho. Be sure to give some counter rudder slowly via your controls (flight stick/analog, not keyboard of course) to help keep you on centerline.