You can't measure the battery's current rating. You can monitor instant current and sum it at every sample on your computer - to estimate how much juice it's left in your battery.
Reading a battery is a simple voltage divisor problem. The UART, on the other hand, my not be that simple. Check my website for a complete RS232/UART tutorial.