Hi Kazuma,
*I used to live in Korea 2 years ago*
We use "used to" to refer to actions that occurred habitually in the past, but do not occur anymore now. It also refers to things that were true but is no longer true.
*I lived in Korea 2 years ago.*
The use of simple past tense here simply emphasises the fact that Korea was your country of residence at a point in time (two years ago).
Just as a side discussion,
"used to verb-ing" refers to a habitual action that is still ongoing; as a result, we have become very familiar with the action.
Example: John USED TO ANSWER every email that he received, but he is now USED TO IGNORING those that do not really matter.
Hope this helps.
Cheers, Lance