Hello and welcome to the forum!
I'm not sure exactly what you are asking, but let me see if I can help.
Probably the most straight-forward thing is to get the "position" of the Sprite. For example:
var pos = my_sprite.position
That will return a Vector2 object with the x and y values of the sprite. Then you can adjust this number based on the size of the object. Sprite has a member function called "get_rect". This will give you a Rect object which has a size parameter that will be the size of the sprite.
So you can do something like this:
var pos = my_sprite.position
var rect = my_sprite.get_rect()
var half_size = Vector2(0.0, rect.size.y * 0.5)
var top_center = pos - half_size
var bottom_center = pos + half_size
This assumes the pivot point of the sprite is in the center of the object.
Not sure if that was what you were asking about, but maybe that will give you an idea. Cheers.