Since Latvia has now joined the EU, what you could do is attend a European university for engineering and then apply for the
Vulcanus programme. There is (as widely discussed on these forums) also MEXT if you're really set on studying in Japan.
In two years you (or anybody) will not acquire enough language skills to handle university level courses in Japanese. In my opinion, considering both the cost (if you pay your own way this is huge, and you cannot rely on part-time work to fund it) and the long term/your career, you would be much better off getting into the best EU university you can and then looking at Vulcanus or similar shorter-term programs to give you a summer or a year in Japan during or directly after university.