As a software engineer you are anything but rich, regardless of wether you think being born in a western country is an advantage. Likely people born to educated parents outside the west are richer than you. Simply because their income is disproportionality higher than their peers, whereas you are just average.