ask 'boy or girl' first (assuming it isn't swathed in blue or pink clothes), then you can ask 'What's her name?'
I agree with retro, asking 'What's your grandchild's name?' may involve unwarranted assumptions; it may not be a relative at all, neighbour may be a babysitter.