There is a poster on here, TikTok, who is very knowledgeable about breastfeeding, Nikki - she might be able to give you more information about how it would work.
I would assume that you will be able to use a breast pump at the hospital you are in, and the milk could be stored in sterilised bottles and transported to the hospital where your baby is (maybe your partner or a friend or family member will have to take it), and it can be given to your baby via whatever way they are being fed.
Even if all your milk doesn't end up being fed to your baby, you will be keeping your supply going, so that, when you are discharged and can go to be with your baby, you'll be able to carry on pumping, and hand the milk over directly.
I used to be a nurse, and I absolutely understand how terrifying all the machines look - especially when they are connected to someone you love. But the nurses will talk you through them, and understanding what each one is doing for your baby, will ease that particular worry.
I will be keeping you and your baby in my thoughts and prayers over Christmas. {{{hugs}}}