Most trains have power sockets available for you to use. They might have a three-pin socket, a USB slot or both. They'll either be on the wall, under the seat in front of you or under your own seat. If you're sat at the table, they might be under the table itself or fixed to the table.