Hello,
This topic may help you : Fix/Pin nodes as boundary condition.
Using the example describe in this topic, you can set a displacement on degrees of freedom that are the intersection of 2 border.
If you want to do this on any degrees of freedom you need to find a way to identify the ID of your point in your finite element space.
I hope this helps.